CMAKE_MINIMUM_REQUIRED(VERSION 3.5)

SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
SET(CMAKE_CXX_STANDARD 20)
SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd /Od")

SET(APP_OBSERVER observer)
PROJECT(webrtc_demo)

ADD_DEFINITIONS(-DNOMINMAX -DWEBRTC_WIN -D_CRT_SECURE_NO_WARNINGS)

ADD_EXECUTABLE(${APP_OBSERVER} observer.cpp)
TARGET_INCLUDE_DIRECTORIES(${APP_OBSERVER} 
        PRIVATE
        E:/codes/open_source/webrtc_checkout/src
        E:/codes/open_source/webrtc_checkout/src/third_party/abseil-cpp/
)

TARGET_LINK_LIBRARIES(${APP_OBSERVER}
        PRIVATE
        E:/codes/open_source/webrtc_checkout/src/out/debug/obj/webrtc.lib
        WS2_32 secur32.lib winmm.lib dmoguids.lib wmcodecdspuuid.lib msdmo.lib Strmiids.lib
        )